package a.h;

import javax.swing.event.SwingPropertyChangeSupport;
import java.beans.*;
import java.util.*;

class vb
  implements xc, gd
{
  protected PropertyChangeSupport a;
  protected Map b;
  private final Object c;
  private List d;
  private Map e;
  
  public vb(Object paramObject)
  {
    this.c = paramObject;
    this.a = null;
    this.b = null;
  }
  
  public Object a(String paramString)
  {
    if (ec.t == 0) {
      if (this.b == null) {
        return null;
      }
    }
    return this.b.get(paramString);
  }
  
  public void b(String paramString)
  {
    if ((ec.t != 0) || (this.b != null))
    {
      Object localObject = this.b.remove(paramString);
      a(paramString, localObject, null);
    }
  }
  
  public void a(String paramString, Object paramObject)
  {
    int i = ec.t;
    if (i == 0) {
      if (this.b == null) {
        this.b = new HashMap();
      }
    }
    Object localObject = this.b.get(paramString);
    if ((i != 0) || (nb.a(localObject, paramObject)))
    {
      if (i == 0) {
        if (paramObject != null)
        {
          if (i != 0) {
            break label96;
          }
          this.b.put(paramString, paramObject);
          if (!ec.s) {
            break label95;
          }
        }
      }
      this.b.remove(paramString);
      label95:
      label96:
      a(paramString, localObject, paramObject);
    }
  }
  
  public void c(PropertyChangeListener paramPropertyChangeListener)
  {
    if (paramPropertyChangeListener != null)
    {
      if (ec.t == 0) {
        if (this.a == null) {
          this.a = new SwingPropertyChangeSupport(this.c);
        }
      }
      this.a.addPropertyChangeListener(paramPropertyChangeListener);
    }
  }
  
  public void d(PropertyChangeListener paramPropertyChangeListener)
  {
    if ((paramPropertyChangeListener != null) && ((ec.t != 0) || (this.a != null))) {
      this.a.removePropertyChangeListener(paramPropertyChangeListener);
    }
  }
  
  public void c(String paramString, PropertyChangeListener paramPropertyChangeListener)
  {
    if (paramPropertyChangeListener != null)
    {
      if (ec.t == 0) {
        if (this.a == null) {
          this.a = new SwingPropertyChangeSupport(this.c);
        }
      }
      this.a.addPropertyChangeListener(paramString, paramPropertyChangeListener);
    }
  }
  
  public void d(String paramString, PropertyChangeListener paramPropertyChangeListener)
  {
    if ((paramPropertyChangeListener != null) && ((ec.t != 0) || (this.a != null))) {
      this.a.removePropertyChangeListener(paramString, paramPropertyChangeListener);
    }
  }
  
  protected void a(String paramString, Object paramObject1, Object paramObject2)
  {
    if ((ec.t != 0) || (this.a != null)) {
      this.a.firePropertyChange(paramString, paramObject1, paramObject2);
    }
  }
  
  protected void a(PropertyChangeEvent paramPropertyChangeEvent)
  {
    if ((ec.t != 0) || (this.a != null)) {
      this.a.firePropertyChange(paramPropertyChangeEvent);
    }
  }
  
  public void a(VetoableChangeListener paramVetoableChangeListener)
  {
    if (paramVetoableChangeListener != null)
    {
      if (ec.t == 0) {
        if (this.d == null) {
          this.d = new ArrayList();
        }
      }
      this.d.add(paramVetoableChangeListener);
    }
  }
  
  public void b(VetoableChangeListener paramVetoableChangeListener)
  {
    if ((paramVetoableChangeListener != null) && ((ec.t != 0) || (this.d != null))) {
      this.d.remove(paramVetoableChangeListener);
    }
  }
  
  public void a(String paramString, VetoableChangeListener paramVetoableChangeListener)
  {
    int i = ec.t;
    if (paramVetoableChangeListener != null)
    {
      if (i == 0) {
        if (this.e == null) {
          this.e = new HashMap();
        }
      }
      if (i == 0)
      {
        if (this.e.containsKey(paramString)) {
          ((List)this.e.get(paramString)).add(paramVetoableChangeListener);
        }
      }
      else if (!ec.s) {
        return;
      }
      ArrayList localArrayList = new ArrayList();
      localArrayList.add(paramVetoableChangeListener);
      this.e.put(paramString, localArrayList);
    }
  }
  
  public void b(String paramString, VetoableChangeListener paramVetoableChangeListener)
  {
    int i = ec.t;
    if ((paramVetoableChangeListener != null) && ((i != 0) || (this.e != null)) && ((i != 0) || (this.e.containsKey(paramString)))) {
      ((List)this.e.get(paramString)).remove(paramVetoableChangeListener);
    }
  }
  
  protected void c(String paramString, Object paramObject1, Object paramObject2)
    throws PropertyVetoException
  {
    PropertyChangeEvent localPropertyChangeEvent = new PropertyChangeEvent(this.c, paramString, paramObject1, paramObject2);
    b(localPropertyChangeEvent);
  }
  
  protected void b(PropertyChangeEvent paramPropertyChangeEvent)
    throws PropertyVetoException
  {
    a(paramPropertyChangeEvent, true);
  }
  
  void a(PropertyChangeEvent paramPropertyChangeEvent, boolean paramBoolean)
    throws PropertyVetoException
  {
    int i = ec.t;
    boolean bool = ec.s;
    Object localObject1 = paramPropertyChangeEvent.getOldValue();
    Object localObject2 = paramPropertyChangeEvent.getNewValue();
    Object localObject3 = paramPropertyChangeEvent.getSource();
    String str = paramPropertyChangeEvent.getPropertyName();
    if (((i != 0) || (localObject1 != null)) && ((i != 0) || (localObject2 != null)) && (localObject1.equals(localObject2))) {
      return;
    }
    ArrayList localArrayList = new ArrayList();
    label160:
    synchronized (this)
    {
      if (i == 0) {
        if (this.d != null) {
          localArrayList.addAll(this.d);
        }
      }
      if (i == 0) {
        if ((this.e != null) && (str != null))
        {
          if (i != 0) {
            break label160;
          }
          if (this.e.containsKey(str)) {
            localArrayList.addAll((List)this.e.get(str));
          }
        }
      }
    }
    if ((i != 0) || (!localArrayList.isEmpty())) {
      try
      {
        ??? = localArrayList.iterator();
        if (((Iterator)???).hasNext()) {
          ((VetoableChangeListener)((Iterator)???).next()).vetoableChange(paramPropertyChangeEvent);
        }
        while (i != 0)
        {
          if ((i == 0) && (bool)) {
            return;
          }
          if (!bool) {
            break;
          }
        }
      }
      catch (PropertyVetoException localPropertyVetoException1)
      {
        if (paramBoolean)
        {
          PropertyChangeEvent localPropertyChangeEvent = new PropertyChangeEvent(localObject3, str, localObject2, localObject1);
          Iterator localIterator = localArrayList.iterator();
          do
          {
            do
            {
              for (;;)
              {
                if (!localIterator.hasNext()) {
                  break label318;
                }
                try
                {
                  ((VetoableChangeListener)localIterator.next()).vetoableChange(localPropertyChangeEvent);
                }
                catch (PropertyVetoException localPropertyVetoException2) {}
              }
            } while (i != 0);
          } while (!bool);
        }
        label318:
        throw localPropertyVetoException1;
      }
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.h.vb

 * JD-Core Version:    0.7.0.1

 */